<html><head><title>CreateParticleEmitter</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">CreateParticleEmitter()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Result = <font color="#006666"><b>CreateParticleEmitter</b></font>(#ParticleEmitter, Width, Height, Depth, Type, [, x, y, z])</blockquote>

<b>Description</b><br><blockquote>

Creates a new empty particle emitter of the given size. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#ParticleEmitter</i></td>
<td width="90%"> 
A number to identify the new particle emitter. 
<a href="../reference/purebasic_objects.html">#PB_Any</a> can be used to auto-generate this number. 

</td></tr>
<tr><td><i>Width, Height, Depth</i></td>
<td> 
The size of the new particle emitter (respectively x,y and z dimension). 
The default size of the future Particles can be specified with the <a href="particlesize.html">ParticleSize()</a> function. 

</td></tr>
<tr><td><i>Type</i></td>
<td> 
It can be one of the following value: 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_Particle_Point</font>: The emitter is a single point
  <font color="#924B72">#PB_Particle_Box</font>  : The emitter is a box, with an width, height and depth
</font></pre>

</td></tr>
<tr><td><i>x, y, z (optional)</i></td>
<td> 
The initial position of the particle emitter in the world. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

Nonzero if the particle emitter has been successfully created, zero otherwise. 
If <a href="../reference/purebasic_objects.html">#PB_Any</a> was used as <font color="#924B72">#ParticleEmitter</font> 
parameter then the auto-generated number of the new particle emitter will be 
returned. 

</blockquote><p><b>See Also</b></p><blockquote>

<a href="freeparticleemitter.html">FreeParticleEmitter()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><a href=index.html>Particle Index</a> - <a href=disableparticleemitter.html>DisableParticleEmitter()</a> ->

</body></html>